package com.egao.common.module.notice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 企业号通知
 * @author root
 */
@ApiModel(description = "企业号通知")
@TableName("notice")
@Data
public class Notice implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("通知内容")
    private String content;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("发送人数")
    private Integer number;

    @ApiModelProperty("成功人数")
    private Integer success;

    @ApiModelProperty("失败人数")
    private Integer fail;

    @ApiModelProperty(value = "推送返回结果记录", notes = "2000个一推,超过2000则有多条结果,用&分隔")
    private String comment;

    @ApiModelProperty("添加人")
    private Integer createBy;

    @ApiModelProperty("添加时间")
    private Date createTime;

    @ApiModelProperty("逻辑删除 0正常 1删除")
    @TableLogic
    private Integer deleted;
}
